package com.dc.system.model;

import java.io.Serializable;
import java.util.List;


public class SysMenu implements Serializable {
    /**
     *
     */
    private int menu_id;

    /**
     *   编号
     *
     */
    private String code;

    /**
     *   名字
     *
     */
    private String name;

    /**
     *   0不是叶子，1是叶子
     *
     */
    private int is_leaf;

    /**
     *   父节点id
     *
     */
    private int fk_parent_id;

    /**
     *   0不显示1显示
     *
     */
    private int is_show;

    /**
     *   地址
     *
     */
    private String url;

    /**
     *   图标
     *
     */
    private String icon;

    /**
     *   前端按钮id
     *
     */
    private String ids;
    
    //额外的
    private List<SysMenu> sysMenus;

	/**
	 * 版本号
	 */
	private int version;

	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}


	/**
     */
    private static final long serialVersionUID = 1L;

    public int getMenu_id() {
		return menu_id;
	}


	public void setMenu_id(int menu_id) {
		this.menu_id = menu_id;
	}


	public String getCode() {
		return code;
	}


	public void setCode(String code) {
		this.code = code;
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public int getIs_leaf() {
		return is_leaf;
	}


	public void setIs_leaf(int is_leaf) {
		this.is_leaf = is_leaf;
	}


	public int getFk_parent_id() {
		return fk_parent_id;
	}


	public void setFk_parent_id(int fk_parent_id) {
		this.fk_parent_id = fk_parent_id;
	}


	public int getIs_show() {
		return is_show;
	}


	public void setIs_show(int is_show) {
		this.is_show = is_show;
	}


	public String getUrl() {
		return url;
	}


	public void setUrl(String url) {
		this.url = url;
	}


	public String getIcon() {
		return icon;
	}


	public void setIcon(String icon) {
		this.icon = icon;
	}


	public String getIds() {
		return ids;
	}


	public void setIds(String ids) {
		this.ids = ids;
	}


	@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", menu_id=").append(menu_id);
        sb.append(", code=").append(code);
        sb.append(", name=").append(name);
        sb.append(", is_leaf=").append(is_leaf);
        sb.append(", fk_parent_id=").append(fk_parent_id);
        sb.append(", is_show=").append(is_show);
        sb.append(", url=").append(url);
        sb.append(", icon=").append(icon);
        sb.append(", ids=").append(ids);
        sb.append("]");
        return sb.toString();
    }


	public List<SysMenu> getSysMenus() {
		return sysMenus;
	}


	public void setSysMenus(List<SysMenu> sysMenus) {
		this.sysMenus = sysMenus;
	}

    
}